import request from '@/utils/request'

export function userlist(){
  return request({
    url:'/independentPoolUser/poolUserList',
    method:'get'
  })
}
//添加用户
export function userAdd(data){
  return request({
    url:'/independentPoolUser/add',
    method:'post',
    data
  })
}
//编辑用户
export function userEdit(data){
  return request({
    url:'/independentPoolUser/edit',
    method:'put',
    data
  })
}
//删除用户
export function userDel(ids){
  return request({
    url:'/independentPoolUser/del',
    method:'delete',
    data:{ids}
  })
}

//查看用户详情
export function userDetail(params){
  return request({
      url:'/independentPoolUserDetail/detail',
      method:'get',
      params
  })
}
//增加用户礼物
export function userDetailAdd(data){
  return request({
    url:'/independentPoolUserDetail/giftAdd',
    method:'post',
    data
  })
}
//编辑用户礼物
export function userDetailEdit(data){
  return request({
    url:'/independentPoolUserDetail/giftEdit',
    method:'put',
    data
  })
}
//删除用户礼物
export function userDetailDel(data){
  return request({
    url:'/independentPoolUserDetail/giftDel',
    method:'delete',
    data
  })
}
